<template>
  <div v-if="!defaultApp?.id">
    <el-empty description="请先添加小程序" />
  </div>
  <template v-else>
    <!-- 小程序本地上传 -->
    <dk-app-upload v-if="defaultApp.auth_type !== 'open'"></dk-app-upload>
    <template v-else>
      <!-- 抖音小程序服务商上传 -->
      <DkDouyinUploadOpen v-if="defaultApp.app_type === 'dy'"></DkDouyinUploadOpen>
      <!-- 微信小程序服务商上传 -->
      <DkWechatUploadOpen v-if="defaultApp.app_type === 'wx'"></DkWechatUploadOpen>
    </template>
  </template>
</template>
<script setup>
import DkAppUpload from '@/views/platform/app/upload/components/DkAppUpload.vue'
import DkDouyinUploadOpen from '@/views/platform/app/upload/components/DkDouyinUploadOpen/index.vue'
import DkWechatUploadOpen from '@/views/platform/app/upload/components/DkWechatUploadOpen/index.vue'
const defaultApp = inject('defaultApp')
onMounted(() => {})
</script>
<style lang="scss" scoped></style>
